package Service.Serviceimpl;

import Dao.Daoimpl.UserLoginimpl;
import Pojo.Judge;
import Pojo.Userlogin;
import Service.UserLoginservice;

import java.sql.SQLException;

public class UserLoginserviceimpl implements UserLoginservice {

    private static UserLoginimpl userLoginimpl=new UserLoginimpl();
    @Override
    public Judge judgeuserservice(Userlogin ul) {

           return userLoginimpl.judgeuser(ul);

    }
    //        测试
    public static void main(String[] args) {

        Userlogin ul = new Userlogin("ruan","123");
        UserLoginserviceimpl userLoginserviceimpl = new UserLoginserviceimpl();
        Judge judgeuserservice = userLoginserviceimpl.judgeuserservice(ul);
        System.out.println(judgeuserservice);
    }
}
